<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>

<#assign headerTag = newTag("headerTag") />
<#assign header = headerTag() />
<#if title??>
	<title>${title}-${header.title}</title>
	<#else>
	<title>${header.title}</title>
</#if>
<#if keywords??>
	<meta name="keywords" content="${keywords!''}"/>
	<#else>
	<meta name="keywords" content="${header.keywords!''}"/>
</#if>
<#if description??>
	<meta name="description" content="${description!''}"/>
	<#else>
	<meta name="description" content="${header.description!''}"/>
</#if>
<meta http-equiv="X-UA-Compatible" content="IE=9"/ > 
<#if site.icofile?exists>
<link href="${site.icofile}" rel="shortcut icon" >
</#if>
<script>
	var ctx="${ctx}";
</script>
<link rel="stylesheet" href="${ctx}${themes_path}/css/common.css" type="text/css" />
<link rel="stylesheet" href="${ctx}${themes_path}/css/dialog.css" type="text/css" />
<!-- 首页 -->
<script type="text/javascript" src="${ctx}/statics/e_tools/js/e_broswer.js"></script>
<link rel="stylesheet" href="${ctx}${themes_path}/css/index.css" type="text/css" />
<script src="${ctx}${themes_path}/js/url-config.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/jquery.form.3.51.0.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/lhgdialog.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/jquery.blockUI.min.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/common.js" type="text/javascript"></script>
<!--  校验提示信息 -->
<script src="${ctx}${themes_path}/js/jquery.validate.js" type="text/javascript"></script>
<!-- 将一个json对象转为字串 -->
<script src="${ctx}${themes_path}/js/Utils.js" type="text/javascript"></script>
<!-- 购物车 -->
<script src="${ctx}${themes_path}/js/shop.js" type="text/javascript"></script>

<!-- 下拉菜单jquer插件 -->
<script src="${ctx}${themes_path}/js/DropDownMenu.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/ui.datepicker.js" type="text/javascript"></script>
<!-- 日期插件 -->
<script src="${ctx}${themes_path}/js/DatePicker.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/LoginDialog.js" type="text/javascript"></script>
<script src="${ctx}${themes_path}/js/jquery.bigautocomplete.js" type="text/javascript"></script>
<!-- 自定义滚动条 -->
<script src="${ctx}${themes_path}/js/jquery.jscroll.js"></script>

<!-- 购物车 -->
<script src="${ctx}${themes_path}/js/Cart.js"></script>
<script src="${ctx}${themes_path}/js/CartBar.js"></script>
<!-- 站内消息 -->
<script src="${ctx}${themes_path}/js/messageFrontTool.js"></script>

<script src="${ctx}${themes_path}/js/My97DatePicker/WdatePicker.js" ></script>
<!-- 兼容 IE7,8,9 text框  placeholder 属性 -->
<script src="${ctx}${themes_path}/js/placeholder.js" type="text/javascript"></script>

<!--<script src="${ctx}${themes_path}/js/jquery.eAjax-1.0.js?v=1.2" type="text/javascript"></script>-->
<script  >
$(function(){
	$('#nav_menu>ul>li').dropDownMenu({child:'.child'});
	if(Sys.ie){$('.if-ie-css').html('<link rel="stylesheet" href="${ctx}${themes_path}/css/if-ie-b2c.css" type="text/css" />')}
});
</script>

</head>
<body>
<div class="if-ie-css"></div>
<!--最上导航-->
	<div class="top">
		<div class="welcome">
			<span class="title"><a href="${ctx}/index.html">您好，欢迎来到本站！</a></span>
			<div class="login_bar login">
			</div>	
			<div class="navigation">
				<ul>
					<li class="first">
						<ul>
							<li id="message_tool_wrapper">
								<a href="${ctx}/member/messagefront_list.html" class="index-go-message">站内消息(<span class="message-num">0</span>)</a>
							</li>
							<li id="cart_bar_wrapper">
								<a href="${ctx}/cart.html" class="index-go-cart">购物车(<span class="num">0</span>)件<i class="common-cart-down"></i></a>
								<div class="cart_content02" style="display:none">
									<div class="cart_list"><@image class="loading" src='${ctx}${themes_path}/images/ajax-loader.gif'/></div>
								</div>
							</li>
							<!--购物车下拉菜单结束-->
						</ul>
					</li>
					<li><a href="${ctx}/help.html">帮助中心</a></li>
					<li style="background:none;"><a href="#">&nbsp;&nbsp;&nbsp;</a></li>
					<li style="background:none;"><a href="#">&nbsp;&nbsp;&nbsp;</a></li>
					<li style="background:none;"><a href="#">&nbsp;&nbsp;&nbsp;</a></li>
				</ul>
			</div>
		</div>
	</div>
<script type="text/javascript">
	$(function(){
		CartBar.init();
		MessageFrontTool.init();
		//加载头部会员信息
		$.ajaxSetup ({
			cache: false
		});

		$(".login_bar").load("${ctx}/common/member_bar.html", function(){
			$("#logout").on('click', function(){
				$.ajax({
					url      : ctx + "/api/shop/member/logout.do",
					dataType : "json",
					cache    : false,             //清楚缓存，暂时测试，如果产生冲突，请优先考虑是否是这条语句。
					success  : function(result){
						if(result.result == 1){
							$.alert(result.message);
							location.href = "${ctx}/index.html";

						}else {
							$.alert(result.message);
						}
						$.Loading.hide();
					},
					error    : function(){
						$.Loading.hide();
						$.alert("出错了:(");
					}
				});
				return false;
			})
		});
	})


</script>
<script>
<#-- 短信安全作用 -->
$(function(){
	$.ajax({
		url : "${ctx}/api/shop/sms/sms-safe.do",
		success : function(){
			
		}
	});
});
</script>

